<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>

<div>
	<table class="left-table" style="table-layout:fixed;word-wrap:break-word;">
	<tr>
		<th width="60" class="first">No.</th>
		<th width="100">Code</th>
		<th width="150">Name</th>
		<th width="300">Url</th>
		<th width="40">Use</th>
		<th width="100">Registrant</th>
		<th width="100">Date</th>
		<th width="160" class="last">Property</th>
	</tr>
	
	<c:set var="list" value="${fnList}" />
	<c:set var="indexNo" value="${pageNavi.indexNo + 1}" />
	<c:choose>
		<c:when test="${not empty list}">
			<c:forEach var="items" items="${list}" varStatus="i">
			<tr class="itemRows">
				<td>${indexNo - i.count}</td>
				<td>
					<font style="color:red;"><c:if test="${items.privateGrpFnYN eq 'Y'}"> (P)</c:if></font>
					<span>${items.fnId}</span>
				</td>
				<td>${items.fnAlias}</td>
				<td>${items.fnServletUrl}</td>
				<td>${items.fnUseYN}</td>
				<td>${items.fnRegId}</td>
				<td>${items.fnRegDate}</td>
				<td>
					<input type="button" name="groupsBtn" value="사용 그룹" />
					<input type="button" name="detailBtn" value="상세" />
					<c:if test="${sysBase.sysChmod >= 7}">
						<input type="button" name="reviseBtn" value="수정" />
						<!-- <input type="button" name="delBtn" value="삭제" /> -->
					</c:if>
				</td>
			</tr>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<tr><td colspan="8">등록된 기능이 없습니다.</td></tr>
		</c:otherwise>
	</c:choose>
	</table>
</div>

<jsp:include page="/WEB-INF/layouts/inc/pageNavigation.jsp" flush="false">
	<jsp:param name="url" value="/template/system/function/_listConts" />
	<jsp:param name="rtnDiv" value=".div-resultList" />
	<jsp:param name="frmData" value="frmPageNavi" />
</jsp:include>

<script type="text/javascript" src="/resources/js/views/template/system/function/_listConts.js"></script>